<template>
  <div id="allmap">
    <div id="map"></div>

    <!-- 图例 -->
    <div class="person_legend" v-if="showLegend">
      <h3>
        图例
        <i class="iconfont icon-shanchu" @click="showLegend = false"></i>
      </h3>
      <p>
        <span>
          <img :src="legend.waterOverlay" alt />
        </span>
        <span  style="font-size: 0.625vw">加水点</span>
      </p>
      
      <p>
        <span>
          <img :src="legend.parking" alt />
        </span>
        <span style="font-size: 0.625vw">停车场</span>
      </p>
      <p>
        <span>
          <img :src="legend.lounge" alt />
        </span>
        <span style="font-size: 0.625vw">作息房</span>
      </p>
    
   
      <!-- <p><span><img alt /></span><span style="color: #fff;">转运站</span></p> -->
      <!-- <p><span><img alt /></span><span style="color: #fff;">转运站</span></p> -->
      <p>
        <span><img alt /></span><span style="color: #fff">转运站</span>
      </p>
      <p>
        <span><img alt /></span><span style="color: #fff">转运站</span>
      </p>
      <p>
        <span><img alt /></span><span style="color: #fff">转运站</span>
      </p>
      <p>
        <span><img alt /></span><span style="color: #fff">转运站</span>
      </p>
      <p>
        <span>
          <img :src="legend.WC" alt />
        </span>
        <span style="font-size: 0.625vw">公厕</span>
      </p>
      <p>
        <span>
          <img :src="legend.LJD" alt />
        </span>
        <span style="font-size: 0.625vw">圾点位</span>
      </p>
     
      <p>
        <span>
          <img :src="legend.CLC" alt />
        </span>
        <span style="font-size: 0.625vw">处理厂</span>
      </p>
      <p>
        <span>
          <img :src="legend.ZZZ" alt />
        </span>
        <span style="font-size: 0.625vw">转运站</span>
      </p>

      <!-- <p>
        <span>
          <img :src="legend.zzzOverlay" alt />
        </span>
        <span style="font-size: 12px;">转运站</span>
      </p>-->
      <!-- <p><span><img alt /></span><span style="color: #fff;">转运站</span></p> -->
      <!-- <p><span><img alt /></span><span style="color: #fff;">转运站</span></p> -->
    </div>
    <el-button
      style="position: absolute; right: 0px; top: 25px"
      size="mini"
      type="primary"
      @click="onlyShowHeader()"
      icon="el-icon-circle-close"
      >隐藏其它</el-button
    >
    <el-button
      style="position: absolute; right: 122px; top: 25px"
      size="mini"
      type="primary"
      @click="requestFullScreen()"
      v-if="!isFull"
      icon="el-icon-full-screen"
      >全屏</el-button
    >
    <el-button
      style="position: absolute; right: 122px; top: 25px"
      size="mini"
      type="primary"
      @click="exitFullscreen()"
      v-else
      icon="el-icon-full-screen"
      >退出全屏</el-button
    >
    <!-- 右上方显示隐藏图标操作栏,多选 -->
    <div class="map-operation">
      <ul>
        <li
          v-for="(item, index) in mapOperationsList"
          :class="{ active: item.active }"
          :key="index"
          @click="changeOperationValue(item, index)"
        >
          <!-- <i :class="item.icon"></i> -->
          {{ item.name }}
        </li>
      </ul>
    </div>

    <!-- 左下角 列表展开按钮-->
    <!-- <div class="mini_legend" v-if="hideFooter" @click="showFooter()">
      设施信息列表
    </div> -->
    <!-- 右下角 图例展开按钮-->
    <div
      class="mini_legend right"
      v-if="!showLegend"
      @click="showLegend = !showLegend"
    >
      图例
    </div>
  </div>
</template>

<script>

import imgMarkerWater from '@/assets/img/marker/加水点.png'
import imgMarkerPollution from '@/assets/img/marker/排污水点.png'
import imgParking from '@/assets/img/marker/停车场.png'
import imgLounge from '@/assets/img/marker/作息房.png'
// import imgMarkerNCD from '@/assets/img/marker/垃圾点.png'

//垃圾设施
import imgMarkerCLC from '@/assets/img/marker/markerImageCLC.png'
import imgMarkerNCD from '@/assets/img/marker/markerImageLarge.png'
import imgMarkerCY from '@/assets/img/marker/markerImageSmall.png'
import imgMarkerXQCY from '@/assets/img/marker/markerImageVillage.png'
import imgMarkerZZZ from '@/assets/img/marker/markerImageZZZ.png'
//公厕设施
import imgToiletDMDX from '@/assets/img/MapMarker/wcToilet/dimiandixia.png'
import imgToiletDL from '@/assets/img/MapMarker/wcToilet/duli.png'
import imgToiletFJ from '@/assets/img/MapMarker/wcToilet/fujian.png'
import imgToiletYD from '@/assets/img/MapMarker/wcToilet/yidong.png'

import eventBus from '@/eventBus.js'
import Schart from 'vue-schart';
import { newMap } from '@/common/js/map.js'
export default {
  components: {
    Schart
  },
  data () {
    return {
      isFull: false,
      map: null,
      mapZoom: 16,
      isZoomChange: 'S',
      // 班组区域
      legend: {
        waterOverlay: imgMarkerWater,
        pollutionOverlay: imgMarkerPollution,
        LJD: imgMarkerNCD,
        ZZZ: imgMarkerZZZ,
        CLC: imgMarkerCLC,
        WC: imgToiletDL,
        parking: imgParking,
        lounge: imgLounge,
        // LJD: imgMarkerNCD
      },
      MapV: {
        dataSetDic: {},
        dataSetDic_Toilet: {},
        textLayerToilet: {},
        VIcon_Installations: {},
        VText_Installations: {}
      },
      MapOverlay: {
        arrayCLCMapOverlay: [],
        arrayZZZMapOverlay: [],
        arrayNCDMapOverlay: [],
        arrayCYMapOverlay: [],
        arrayXQCYMapOverlay: [],
        arrayToiletMapOverlay: [],
        arrayWaterMapOverlay: [],
      },
      Data: {
        arrayCLCMarkerData: [],
        arrayZZZMarkerData: [],
        arrayNCDMarkerData: [],
        arrayXQCYMarkerData: [],
        arrayCYMarkerData: [],
        arrayToiletData: [],
        arrayWaterData: [],
        arrayParkingLotData: [],
      },
      hideFooter: false,
      showLegend: true,
      mapInfoTabValue: 0,
      showMapInfo: true,
      mapOperationsList: [{
        name: '加水点',
        icon: 'el-icon-house',
        num: 0,
        active: true
      }, {
        name: '转运站',
        icon: 'el-icon-house',
        num: 0,
        active: true
      }, {
        name: '处理厂',
        icon: 'el-icon-house',
        num: 0,
        active: true
      }, {
        name: '垃圾点',
        icon: 'el-icon-house',
        num: 0,
        active: true
      }, {
        name: '公厕',
        icon: 'el-icon-house',
        num: 0,
        active: true
        },{
          name: '停车场',
          icon: 'el-icon-house',
          num: 0,
          active: true
        // },{
        //   name: '餐饮单位',
        //   icon: 'el-icon-house',
        //   num: 0,
        //   active: true
      }],
    }
  },
  created () {

  },
  mounted () {

    this.getdataJSD()
    this.getdataWC()
    this.getPlacePointCLCApi()
    // this.getPlacePointCYApi()
    this.getPlacePointNCDApi()
    // this.getPlacePointXQCYApi()
    this.getPlacePointZZZApi()
    this.getParkingLot()
    // 显示地图
    this.mapShow()
  },
  methods: {
    // 加水点
    async getdataJSD () {
      var url = '/CarService/getPlaceWaterInfo?CLIENT_NO=' + localStorage.getItem('CLIENT_NO')
      const { data } = await this.$Http.get(url)
      this.Data.arrayWaterData = data
      this.drawMapVUnmove(this.Data.arrayWaterData, imgMarkerWater, 'Water')
    },
    // 停车场
    async getParkingLot () {
      // var url = 'RubbishVehicle/getPlaceXQCY?CLIENTNO=' + localStorage.getItem('CLIENT_NO')
      // let { data } = await this.$Http.get(url)
      this.Data.arrayParkingLotData = [{"NAME":"和平区环卫地下停车场","LONGITUDE":"117.188687","LATITUDE":"39.120785","LOCATION":"和平区新兴路与鞍山道交叉口西南150米","CLIENT_NO":"0000009","TYPE":"A","NUMBER":null,"THEORY":null,"COMPANY":null}
      ,{"NAME":"河西环卫机扫中心停车场","LONGITUDE":"117.255281","LATITUDE":"39.06338","LOCATION":"河西区双水道与洞庭路交叉口西南150米","CLIENT_NO":"0000009","TYPE":"A","NUMBER":null,"THEORY":null,"COMPANY":null}
      ,{"NAME":"天津市南开区环境卫生管理三所","LONGITUDE":"117.182249","LATITUDE":"39.148867","LOCATION":"南开区城厢西路中营小学西侧","CLIENT_NO":"0000009","TYPE":"A","NUMBER":null,"THEORY":null,"COMPANY":null}];
      this.drawMapVUnmove(this.Data.arrayParkingLotData, imgParking, 'Parking')
    },
    //获取公厕列表
    async getdataWC () {
      var url = '/CarService/getPlaceToilet?CLIENT_NO=' + localStorage.getItem('CLIENT_NO')
      const { data } = await this.$Http.get(url)
      this.Data.arrayToiletData = data
      this.drawMapVUnmove(this.Data.arrayToiletData, imgToiletDL, 'WC')
    },
    // 获取处理厂
    async getPlacePointCLCApi () {
      var url = 'RubbishVehicle/getPlaceCLC?CLIENTNO=' + localStorage.getItem('CLIENT_NO')
      let { data } = await this.$Http.get(url)
      this.Data.arrayCLCMarkerData = data
      this.drawMapVUnmove(this.Data.arrayCLCMarkerData, imgMarkerCLC, 'CLC')
    },
    // 获取转运站
    async getPlacePointZZZApi () {
      var url = 'RubbishVehicle/getPlaceZZZ?CLIENTNO=' + localStorage.getItem('CLIENT_NO')
      let { data } = await this.$Http.get(url)
      this.Data.arrayZZZMarkerData = data
      this.drawMapVUnmove(this.Data.arrayZZZMarkerData, imgMarkerZZZ, 'ZZZ')
    },
    // 获取农村点
    async getPlacePointNCDApi () {
      var url = 'RubbishVehicle/getPlaceNCD?CLIENTNO=' + localStorage.getItem('CLIENT_NO')
      let { data } = await this.$Http.get(url)
      this.Data.arrayNCDMarkerData = data
      this.drawMapVUnmove(this.Data.arrayNCDMarkerData, imgMarkerNCD, 'NCD')
    },
    // 获取餐饮单位
    async getPlacePointCYApi () {
      var url = 'RubbishVehicle/getPlaceCY?CLIENTNO=' + localStorage.getItem('CLIENT_NO')
      let { data } = await this.$Http.get(url)
      this.Data.arrayCYMarkerData = data
      this.drawMapVUnmove(this.Data.arrayCYMarkerData, imgMarkerCY, 'CY')
    },
    // 获取小区垃圾点
    async getPlacePointXQCYApi () {
      var url = 'RubbishVehicle/getPlaceXQCY?CLIENTNO=' + localStorage.getItem('CLIENT_NO')
      let { data } = await this.$Http.get(url)
      this.Data.arrayXQCYMarkerData = data;
      this.drawMapVUnmove(this.Data.arrayXQCYMarkerData, imgMarkerXQCY, 'XQCY')
    },
    // 获取处理厂边界点
    // async getCLCPolygon () {
    //   var url = 'RubbishVehicle/GetFactoryInfo?TYPE=1&ID=1001'
    //   let { data } = await this.$Http.get(url)
    //   eventBus.$emit('mapCLCPolygon', data)
    // }
    async drawMapVUnmove (arrayPoint, icon, key) {
      // if (this.mapOperationsList[1].active) {
      const _self = this;

      let img = new Image();
      img.src = icon
      img.onload = function () {
        //循环加载同一张图片的车辆数据
        let arrayImage = arrayPoint.map(v => {
          v.geometry = {
            type: 'Point',
            coordinates: [v.LONGITUDE, v.LATITUDE]
          }
          v.icon = img;
          v.text = v.NAME;
          return v;
        })

        if (_self.MapV.dataSetDic.hasOwnProperty(key)) {

          _self.MapV.dataSetDic[key].set(arrayImage);
          // _self.MapV.iconLayerDic[key].show()
          // _self.MapV.textLayerDic[key].show()

        } else {

          let optionsICON = {
            draw: 'icon',
            width: 35, // 规定图像的宽度
            height: 35, // 规定图像的高度
            // offset: { // 文本便宜值
            //       x: 0,
            //       y: 20
            //     }
          }

          let optionsTEXT = {
            draw: 'text',
            size: 14,
            avoid: true, // 开启文本标注避让
            textBaseline: 'middle',
            offset: { // 文本便宜值
              x: 0,
              y: 25
            }
          }
          _self.MapV.dataSetDic[key] = new mapv.DataSet(arrayImage);
          _self.MapV.VIcon_Installations[key] = new mapv.baiduMapLayer(_self.map, _self.MapV.dataSetDic[key], optionsICON)
          _self.MapV.VText_Installations[key] = new mapv.baiduMapLayer(_self.map, _self.MapV.dataSetDic[key], optionsTEXT)
        }
      }
      // }else{
      //   mapVIcon.sh
      // }
    },
    // //停车场
    async handleCheckParking () {
      let key = 'Parking'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[5].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayParkingLotData, imgParking, key)


        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // //公厕
    async handleCheckWC () {
      let key = 'WC'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[4].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayWaterData, imgToiletDL, key)


        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // //加水点
    async handleCheckWater () {
      let key = 'Water'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[0].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayWaterData, imgMarkerWater, key)


        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // //转运站
    async handleCheckZZZ () {
      let key = 'ZZZ'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[1].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayZZZMarkerData, imgMarkerZZZ, key)

        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // //处理厂
    async handleCheckCLC () {
      let key = 'CLC'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[2].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayCLCMarkerData, imgMarkerCLC, key)

        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // //农村点
    async handleCheckNCD () {
      let key = 'NCD'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[3].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayNCDMarkerData, imgMarkerNCD, key)

        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // //小区
    async handleCheckXQCY () {
      let key = 'XQCY'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[4].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayXQCYMarkerData, imgMarkerXQCY, key)

        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // //餐饮
    async handleCheckCY () {
      let key = 'CY'
      var vIcon = this.MapV.VIcon_Installations[key]
      var vText = this.MapV.VText_Installations[key]
      if (this.mapOperationsList[5].active) {
        if (vIcon) {
          vIcon.show()
          vText.show()
        } else {
          this.drawMapVUnmove(this.Data.arrayCYMarkerData, imgMarkerCY, key)

        }
      } else {
        vIcon.hide()
        vText.hide()
      }
    },
    // 显示地图
    async mapShow () {
      // 百度地图API功能
      this.map = newMap();
      // 初始化地图,设置中心点坐标和地图级别
      this.map.centerAndZoom(new BMap.Point(localStorage.getItem('LNG'), localStorage.getItem('LAT')), this.mapZoom)

      // const _this = this
      //缩放屏幕
      // this.map.addEventListener('zoomend', function (e) {
      //   // console.log("地图缩放至：" + this.getZoom() + "级");
      //   // var aa = e.target.getZoom();
      //   if (e.target.getZoom() > 12 && _this.isZoomChange === 'S') {
      //     _this.isZoomChange = 'B';
      //     for (var key in _this.MapV.textLayerDic) {
      //       _this.MapV.textLayerDic[key].show();
      //     }
      //     // _this.drawMapVUnmove()
      //     // _this.checkboxType()
      //   }
      //   if (e.target.getZoom() <= 12 && _this.isZoomChange === 'B') {
      //     _this.isZoomChange = 'S';
      //     for (var key1 in _this.MapV.textLayerDic) {
      //       _this.MapV.textLayerDic[key1].hide();
      //     }
      //     // _this.drawMapVUnmove()
      //     // _this.checkboxType()
      //   }
      // });
    },

    // 显示底部列表
    showFooter () {
      this.hideFooter = false;
      eventBus.$emit('toShowFooter');
    },
    // 仅显示头
    onlyShowHeader () {
      // this.toHideWarningInfo();
      eventBus.$emit('toHideMapInfo');
      eventBus.$emit('toHideFooter');
      eventBus.$emit('toHideLegend');
    },
    // 进入全屏
    requestFullScreen () {
      this.isFull = true;
      eventBus.$emit('contentToFullScreen');
      var de = document.documentElement;
      if (de.requestFullscreen) {
        de.requestFullscreen();
      } else if (de.mozRequestFullScreen) {
        de.mozRequestFullScreen();
      } else if (de.webkitRequestFullScreen) {
        de.webkitRequestFullScreen();
      }
    },
    // 退出全屏
    exitFullscreen () {
      this.isFull = false;
      eventBus.$emit('contentToDefaultScreen');
      var de = document;
      if (de.exitFullscreen) {
        de.exitFullscreen();
      } else if (de.mozCancelFullScreen) {
        de.mozCancelFullScreen();
      } else if (de.webkitCancelFullScreen) {
        de.webkitCancelFullScreen();
      }
    },
    // 地图信息tab切换
    changeMapInfoTabValue (index) {
      if ((index === this.mapInfoTabValue) && this.showMapInfo) {
        this.showMapInfo = false;
        this.mapInfoTabValue = '';
      } else {
        this.showMapInfo = true;
        this.mapInfoTabValue = index;
      }
    },
    // 改变右上方显示隐藏图标
    changeOperationValue (item, index) {

      item.active = !item.active

      switch (index) {
        case 0:
          // this.drawMapV()
          this.handleCheckWater();
          break;
        case 1:
          // this.drawMapV()
          this.handleCheckZZZ();
          break;
        case 2:
          // this.drawMapV()
          this.handleCheckCLC();
          break;
        case 3:
          // this.drawMapV()
          this.handleCheckNCD();
          break;
        case 4:
          // this.drawMapV()
          this.handleCheckWC();
          break;

          case 5:
          // this.drawMapV()
          this.handleCheckParking();
          break;
        // case 4:
        // // this.drawMapV()
        // this.handleCheckXQCY();
        // break;
        // case 5:
        // // this.drawMapV()
        // this.handleCheckCY();
        // break;
        // case 6:
        // // this.drawMapV()
        // this.handleCheckWater();
        // break;
        default:
          break;
      }
    }
  }
}
</script>

<style scoped lang="less">
#allmap {
  position: relative;
  // height: calc(100% - 40px);
  height: 100%;
}
/deep/.BMap_cpyCtrl {
  display: none !important;
}
/deep/.anchorBL {
  display: none !important;
}
#map {
  height: 100%;
}
.person_legend {
  width: 28.646vw;
  position: absolute;
  right: 0.521vw;
  bottom: 0.521vw;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.26vw 0.521vw 0 0.521vw;
  border-radius: 0.26vw;
  h3 {
    height: 1.563vw;
    text-align: center;
    line-height: 1.563vw;
    color: #333;
    margin-bottom: 0.26vw;
    i {
      float: right;
      cursor: pointer;
      &:before {
        color: #666;
      }
    }
  }
  p {
    // text-align: center;
    height: 3.229vw;
    color: #333;
    float: left;
    width: 14%;
    margin-bottom: 1.042vw;
    span {
      display: block;
      text-align: center;
      &:first-child {
        img {
          // background-size: 1.563vw 1.563vw;
          height: 2.083vw;
        }
      }
    }
  }
}
.mini_legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #dcdfe6;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: #007acc;
  font-size: 14px;
  &.right {
    right: 10px;
    left: auto;
  }
}
.map-infos-wrap {
  position: absolute;
  left: 10px;
  top: 30px;
  height: 120px;
  .map-infos {
    background: rgba(255, 255, 255, 0.9);
    height: 500px;
    width: 300px;
    border-radius: 5px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100%;
    h3 {
      font-size: 15px;
      line-height: 26px;
      margin-left: 10px;
      i {
        float: right;
        font-style: normal;
        color: #666;
        font-size: 12px;
      }
    }
    .item-wrap {
      display: flex;
      margin-bottom: 20px;
      .item-con {
        flex: 1;
        text-align: center;
        h2 {
          margin-top: 10px;
          line-height: 30px;
          font-size: 20px;
        }
        span {
          font-size: 13px;
          color: #666;
        }
      }
    }
    .icon-wrap {
      margin: 10px 10px 10px 0;
      .icon-con {
        width: 33.33%;
        float: left;
        text-align: center;
        margin: 15px 0;
        position: relative;
        i {
          font-size: 20px;
          display: block;
          margin-bottom: 5px;
          color: #333;
        }
        .el-tag.el-tag--mini {
          position: absolute;
          right: 0;
          top: -8px;
          height: 15px;
          line-height: 15px;
          border-color: #e1dada;
          background: #e1dada;
          color: #666;
        }
        span {
          font-family: STHeiti;
          font-size: 14px;
          color: rgb(34, 34, 34);
        }
        &.hasColor {
          i {
            color: #007acc;
          }
          .el-tag.el-tag--mini {
            font-size: 14px;
            border-color: #007acc;
            background: #007acc;
            color: #fff;
          }
        }
      }
    }
    .map-checkboxs {
      margin-top: 10px;
      p {
        line-height: 30px;
      }
    }
    /deep/.el-progress-bar__outer {
      background: #d8d8d8;
    }
  }
  .info-tabs {
    position: absolute;
    right: -30px;
    top: 20px;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    border-radius: 0 3px 3px 0;
    overflow: hidden;
    a {
      display: block;
      padding: 3px 3px 1px 3px;
      text-align: center;
      line-height: 24px;
      cursor: pointer;
      &.active {
        background: #007acc;
        i {
          color: #fff;
        }
      }
    }
  }
  /* 滚动条样式 */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
  }
}
/deep/.el-table.card-table {
  margin-top: 10px;
  background: none;
  thead,
  tbody {
    color: #333;
  }
  tr,
  th {
    background: none !important;
  }
  th div,
  td div {
    font-size: 14px;
  }
  tr:nth-child(2n) {
    background: none;
  }
  tr:hover > td {
    background: none !important;
  }
}
.map-operation {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 32px;
  top: 10px;
  border-radius: 5px;
  ul {
    li {
      list-style: none;
      float: left;
      color: #ecf0f3;
      background: #b2bbbe;
      font-size: 16px;
      padding: 5px 12px;
      position: relative;
      cursor: pointer;
      border-radius: 2px;
      i {
        margin-right: 3px;
        margin-bottom: 3px;
        &:before {
          font-size: inherit;
          color: inherit;
        }
      }
      &::before {
        display: block;
        content: '';
        width: 1px;
        height: 13px;
        background: #dcdfe6;
        position: absolute;
        right: 0;
        top: 8px;
      }
      &:last-child {
        &::before {
          display: none;
        }
      }
      &.active {
        color: #fff;
        background: #007acc;
        border-radius: 2px;
      }
    }
  }
}
.row_box {
  width: 120px;
  // height: 130px;
  color: #666;
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  position: fixed;
  span {
    display: block;
    text-align: center;
    line-height: 26px;
    cursor: default;
    &:hover {
      color: #fff;
      background-color: #409eff;
    }
  }
}
</style>
